package cn.biplam.front.component.view.systemManage.task.runmanage;

import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.Result;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.callback.CallBack;
import cn.biplam.front.component.data.common.ButtonComp;
import cn.biplam.front.html.base.HtmlWindow;
import cn.biplam.front.html.base.Const.Window_Event;
import cn.biplam.front.htmlscript.script.AjxScript;

/**
 * 任务管理-运行管理主页面
 * @author WangSong 2009-6-22下午03:59:24
 * @version 1.0
 */
public class RunManageOperatorCallBack implements CallBack{

	public HtmlWindow[] getGroup(Result data, String homeUrl, UserInfo mUser)
			throws ErrorMessage {
		/** 创建按钮 */
		HtmlWindow[] opetator=new HtmlWindow[1];
		/** 停止按钮 */
		opetator[0]=ButtonComp.get(mUser, "280"); 
		String script = AjxScript.getSp(RunManage.cId, //提交容器ID
										RunManage.aId_Stop, //提交动作ID
										RunManage.cId,      //刷新父页面ID
										data.getString("name")//主键ID
										);
		opetator[0].bind(Window_Event.OnClick, script);
		return opetator;
	}

}
